package gameLevel.classicLevel;

import object.Grass;
import object.Iron;
import object.Wall;
import tank.Dir;
import tank.EnemyTank;
import tank.TankType;

public class ClassicLevel_1 extends ClassicLevel{

    @Override
    protected void initEnemyTanks() {
        enemyTanks.add(new EnemyTank(TankType.ENEMY1, 11, 50,Dir.DOWN));
        enemyTanks.add(new EnemyTank(TankType.ENEMY1, 11, 300,Dir.RIGHT));
        enemyTanks.add(new EnemyTank(TankType.ENEMY1, 376, 50, Dir.DOWN));
        enemyTanks.add(new EnemyTank(TankType.ENEMY1, 741, 50,Dir.DOWN));
        enemyTanks.add(new EnemyTank(TankType.ENEMY1, 741, 300,Dir.LEFT));

        enemyTankMove();
    }

    @Override
    protected void initTerrainLayout() {
        for(int i = 0; i < 6; i++){
            new Wall(140,110 + i * 30);
            new Wall(230,110 + i * 30);
            new Wall(540,110 + i * 30);
            new Wall(630,110 + i * 30);
            new Wall(70 + i * 30, 440);
            new Wall(700 - i * 30, 440);

            if(i >= 1){
                new Grass(325 + (i - 1) * 30,380);
                new Grass(325 + (i - 1) * 30,410);
            }

            if(i >= 3){
                new Iron(355 + (i - 3) * 30, 200);
            }

            if(i >= 4){
                new Iron(10 + (i - 4) * 30,350);
                new Wall(130 + (i - 4) * 30, 350);
                new Wall(640 - (i - 4) * 30, 350);
                new Iron(760 - (i - 4) * 30, 350);
            }

            if(i == 5){
                new Iron(250, 350);
                new Iron(520, 350);
            }
        }
    }


}
